#ifndef GRAPHICS_FONT_H_
#define GRAPHICS_FONT_H_

#include <nds.h>
#include <vector>
#include <string>

struct fontLineIndex
{
	u8 index;
	u8 offset;
};

struct fontLine
{
	u16 glyphIndex[256];
	fontLineIndex sprite[10];
	u8 curStartChar;
};

struct glyph
{
	u32 codepoint;
	std::string data;
};

class GlyphTable
{
	public:
		std::vector<glyph> glyphs;
		void addCP(u32 codepoint);
		void sort();
		std::string getGlyphHex(u32 codepoint);
};

#endif /* GRAPHICS_FONT_H_ */
